#pragma once

#include <string>
#include <vector>
#define NOT_VISIT 0
#define VISITING 1
#define VISITED 2
class Node {
public:
    std::string str;
    char head;
    char tail;
    int visit;
    int checkVisit;
    int max;
    Node *next;
    int firstSet;
    std::vector<std::string> chains;
    explicit Node(std::string &str);

};